'''
author:ni
'''
from users.models import UserToken


def check_token(token,user_id):
    get_token = UserToken.objects.filter(user_id = user_id).first()
    print(get_token.token)
    if get_token.token :
        if get_token.token == token:
            print(33333)
            return True
    else:
        print(444444)
        return False

